const Mock = require("mockjs");

module.exports = {
  /**
   * 生成电话号码
   * @param {stringn} phonePre 电话前缀
   */
  createPhone(phonePre = "135") {
    const reg = new RegExp(`\\d{${11 - phonePre.length}}`);
    return phonePre + Mock.mock(reg);
  },
};
